package com.sky.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @desc：新增员工
     * @author: weili23
     * @params
     * @Date: 2024/10/24 9:03
     * @version: 1.0
     */
    void saveEmployee(EmployeeDTO employeeDTO);

    Page<Employee> queryPageEmployee(EmployeePageQueryDTO employeePageQueryDTO);

    void enableAndDisabledEmployee(Long id, Integer status);

    Employee queryById(Long id);

    void updateEmployee(EmployeeDTO employeeDTO);
}
